<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改专辑')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-album-edit" th:object="${album}">
            <input name="albumId" th:field="*{albumId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label"><span style="color: red; ">*</span>专辑名称：</label>
                <div class="col-sm-8">
                    <input name="title" th:field="*{title}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">简介：</label>
                <div class="col-sm-8">
                    <input name="description" th:field="*{description}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">导演：</label>
                <div class="col-sm-8">
                    <input name="director" th:field="*{director}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">主演：</label>
                <div class="col-sm-8">
                    <textarea name="leadingActor" class="form-control">[[*{leadingActor}]]</textarea>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">cid(选填)：</label>
                <div class="col-sm-3">
                    <input name="cid" th:field="*{cid}" class="form-control" type="text">
                </div>
                <label class="col-sm-3 control-label">引入商务：</label>
                <div class="col-sm-3">
                    <select name="businessLeader" class="form-control m-b">
                        <option
                                th:selected="*{businessLeader} eq ${authorizer.businessLeader}"
                                th:each="authorizer : ${businessLeaderList}"
                                th:value="${authorizer['businessLeader']}"
                                th:text="${authorizer['businessLeader']}">
                        </option>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label"><span style="color: red; ">*</span>分类：</label>
                <div class="col-sm-3">
                    <select name="classId" class="form-control m-b" required>
                        <option
                            th:selected="*{classId} eq ${classification.classId}"
                            th:each="classification : ${classificationList}"
                            th:value="${classification['classId']}"
                            th:text="${classification['className']}">
                        </option>
                    </select>
                </div>
                <label class="col-sm-3 control-label">类型：</label>
                <div class="col-sm-3">
                    <input name="type" th:field="*{type}" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group">    
                <label class="col-sm-3 control-label">语言：</label>
                <div class="col-sm-3">
                    <input name="langue" th:field="*{langue}" class="form-control" type="text">
                </div>
                <label class="col-sm-3 control-label">地区：</label>
                <div class="col-sm-3">
                    <input name="areaName" th:field="*{areaName}" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group">    
                <label class="col-sm-3 control-label">评分：</label>
                <div class="col-sm-3">
                    <input name="score" th:field="*{score}" class="form-control" type="text">
                </div>
                <label class="col-sm-3 control-label">年龄段：</label>
                <div class="col-sm-3">
                    <input name="ageGroup" th:field="*{ageGroup}" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label"><span style="color: red; ">*</span>总集数：</label>
                <div class="col-sm-3">
                    <input name="episodeAll" th:field="*{episodeAll}" class="form-control" type="text" required>
                </div>
                <label class="col-sm-3 control-label">单集时长：</label>
                <div class="col-sm-3">
                    <input name="times" th:field="*{times}" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">总时长-分钟：</label>
                <div class="col-sm-3">
                    <input name="allTimesMin" th:field="*{allTimesMin}" class="form-control" type="text">
                </div>
                <label class="col-sm-3 control-label">总时长-小时：</label>
                <div class="col-sm-3">
                    <input name="allTimesHour" th:field="*{allTimesHour}" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group">    
                <label class="col-sm-3 control-label">分辨率：</label>
                <div class="col-sm-3">
                    <input name="resolution" th:field="*{resolution}" class="form-control" type="text">
                </div>
                <label class="col-sm-3 control-label">上映日期：</label>
                <div class="col-sm-3">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="publishDate" th:value="*{publishDate}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">标签：</label>
                <div class="col-sm-3">
                    <select name="tag" class="form-control m-b">
                        <option th:selected="*{tag}=='-1'" value='-1'>未知</option>
                        <option th:selected="*{tag}=='1'" value='1'>独播</option>
                        <option th:selected="*{tag}=='2'" value='2'>自制</option>
                        <option th:selected="*{tag}=='3'" value='3'>vip</option>
                        <option th:selected="*{tag}=='4'" value='4'>腾讯视频</option>
                    </select>
                </div>
                <label class="col-sm-3 control-label">院线/网大：</label>
                <div class="col-sm-3">
                    <select name="theatreInternet" class="form-control m-b">
                        <option th:selected="*{theatreInternet}=='-1'" value='-1'>未知</option>
                        <option th:selected="*{theatreInternet}=='1'" value='1'>院线</option>
                        <option th:selected="*{theatreInternet}=='2'" value='2'>网大</option>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">发行许可证：</label>
                <div class="col-sm-3">
                    <input name="issueLicense" th:field="*{issueLicense}" class="form-control" type="text">
                </div>
                <label class="col-sm-3 control-label">制作许可证：</label>
                <div class="col-sm-3">
                    <input name="makeLicense" th:field="*{makeLicense}" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">制作单位：</label>
                <div class="col-sm-3">
                    <input name="productionCompany" th:field="*{productionCompany}" class="form-control" type="text">
                </div>
                <label class="col-sm-3 control-label">播出平台：</label>
                <div class="col-sm-3">
                    <input name="playPlatform" th:field="*{playPlatform}" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group">    
                <label class="col-sm-3 control-label"><span style="color: red; ">*</span>授权方：</label>
                <div class="col-sm-3">
                    <select name="authorizerId" class="form-control m-b" required>
                        <option
                                th:selected="*{authorizerId} eq ${authorizer.authorizerId}"
                                th:each="authorizer : ${authorizerList}"
                                th:value="${authorizer['authorizerId']}"
                                th:text="${authorizer['shortName']}">
                        </option>
                    </select>
                </div>
                <label class="col-sm-3 control-label">是否可提供：</label>
                <div class="col-sm-3">
                    <select name="isProvide" class="form-control m-b">
                        <option th:selected="*{isProvide}=='-1'" value='-1'>未知</option>
                        <option th:selected="*{isProvide}=='1'" value='1'>可提供</option>
                        <option th:selected="*{isProvide}=='2'" value='2'>着重可提供</option>
                        <option th:selected="*{isProvide}=='0'" value='0'>不可提供</option>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label"><span style="color: red; ">*</span>授权开始：</label>
                <div class="col-sm-3">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="authorBeginDate" th:value="*{authorBeginDate}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
                <label class="col-sm-3 control-label"><span style="color: red; ">*</span>授权截止：</label>
                <div class="col-sm-3">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="authorEndDate" th:value="*{authorEndDate}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">ott版权：</label>
                <div class="col-sm-3">
                    <select name="isOttCopyright" class="form-control m-b">
                        <option th:selected="*{isOttCopyright}=='-1'" value='-1'>未知</option>
                        <option th:selected="*{isOttCopyright}=='1'" value='1'>有</option>
                        <option th:selected="*{isOttCopyright}=='0'" value='0'>没有</option>
                    </select>
                </div>
                <label class="col-sm-3 control-label">iptv版权：</label>
                <div class="col-sm-3">
                    <select name="isIptvCopyright" class="form-control m-b">
                        <option th:selected="*{isOttCopyright}=='-1'" value='-1'>未知</option>
                        <option th:selected="*{isOttCopyright}=='1'" value='1'>有</option>
                        <option th:selected="*{isOttCopyright}=='0'" value='0'>没有</option>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">版权类型：</label>
                <div class="col-sm-3">
                    <select name="copyrightType" class="form-control m-b">
                        <option th:selected="*{copyrightType}=='-1'" value='-1'>未知</option>
                        <option th:selected="*{copyrightType}=='1'" value='1'>独播</option>
                        <option th:selected="*{copyrightType}=='0'" value='0'>非独播</option>
                    </select>
                </div>
                <label class="col-sm-3 control-label"><span style="color: red; ">*</span>内容等级：</label>
                <div class="col-sm-3">
                    <select name="contentLevel" class="form-control m-b" required>
                        <option th:selected="*{contentLevel}=='-1'" value=''>未知</option>
                        <option th:selected="*{contentLevel}=='S+'" value='S+'>S+</option>
                        <option th:selected="*{contentLevel}=='S'" value='S'>S</option>
                        <option th:selected="*{contentLevel}=='S'" value='S-'>S-</option>
                        <option th:selected="*{contentLevel}=='A+'" value='A+'>A+</option>
                        <option th:selected="*{contentLevel}=='A'" value='A'>A</option>
                        <option th:selected="*{contentLevel}=='B'" value='B'>B</option>
                        <option th:selected="*{contentLevel}=='C'" value='C'>C</option>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label"><span style="color: red; ">*</span>采购类型：</label>
                <div class="col-sm-3">
                    <select name="purchaseType" class="form-control m-b">
                        <option th:selected="*{purchaseType}=='-1'" value='-1'>未知</option>
                        <option th:selected="*{purchaseType}=='1'" value='1'>采购</option>
                        <option th:selected="*{purchaseType}=='2'" value='2'>按月结算</option>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">版权参考：</label>
                <div class="col-sm-3">
                    <input name="copyrightRefer" th:field="*{copyrightRefer}" class="form-control" type="text">
                </div>
                <label class="col-sm-3 control-label">版权信息：</label>
                <div class="col-sm-3">
                    <input name="copyrightInfo" th:field="*{copyrightInfo}" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">移动盘路径：</label>
                <div class="col-sm-3">
                    <input name="mobileDisk" th:field="*{mobileDisk}" class="form-control" type="text">
                </div>
                <label class="col-sm-3 control-label">服务器路径：</label>
                <div class="col-sm-3">
                    <input name="serverDisk" th:field="*{serverDisk}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "media/album";
        $("#form-album-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-album-edit').serialize());
            }
        }

        $("input[name='publishDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='authorBeginDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='authorEndDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>